package com.service.component.role.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.service.component.common.entity.CommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * @author ：Administrator
 * @create ：2021/7/22 10:07
 * @description：角色实体
 * @modified By：
 * @version: 1.0.0$
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "角色实体")
@TableName(value = "sys_role")
public class Role extends CommonEntity {

    @TableField(value = "PARENT_ID")
    @ApiModelProperty(value = "父角色ID")
    private String parentId;

    @TableField(value = "ROLE_NAME_EN")
    @NotNull(message = "角色英文名称不能为空")
    @ApiModelProperty(value = "角色英文名称")
    private String roleNameEN;

    @TableField(value = "ROLE_NAME_CN")
    @NotNull(message = "角色中文名称不能为空")
    @ApiModelProperty(value = "角色中文名称")
    private String roleNameCN;

    @TableField(value = "ROLE_DESCRIBE")
    @ApiModelProperty(value = "角色描述")
    private String roleDescribe;
}
